<template>
  <view class="mine-view">
    <view class="title-view">积分</view>
    <view class="box-view">
      <view class="tabBar-head">355558</view>
      <view class="head-text">可用积分</view>
      <view class="box-button">
        <view class="button-item">
          <image
            src="/static/pc/PcIntegral-left.png"
            class="button-image"
          ></image
          ><view class="but-text">积分兑换</view></view
        >
        <view class="button-item"
          ><image
            src="/static/pc/PcIntegral-right.png"
            class="button-image"
          ></image
          ><view class="but-text">积分兑换</view></view
        >
      </view>
      <view class="box-bottom">
        <view class="cell-item">
          <view class="desc-text">1325</view>
          <view class="label-text">终身有效积分</view>
        </view>
        <view class="cell-item">
          <view class="desc-text">1325</view>
          <view class="label-text">
            <view>到期失效积分</view>
            <view class="button-view">
              <view>查看</view>
              <i class="el-icon-arrow-right"></i>
            </view>
          </view>
        </view>
      </view>
    </view>
    <view class="box-income">
      <view class="income-title">收入明细</view>
      <view class="income-detail" v-for="(item, index) in 3" :key="index">
        <view class="income-detail-left">
          <view class="income-detail-title">首次登录</view>
          <view class="income-detail-time">2024.01.20</view>
        </view>
        <view class="income-detail-right">+30</view>
      </view>
    </view>
  </view>
</template>

<script>
export default {
  data() {
    return {};
  },
  methods: {},
};
</script>

<style scoped lang="scss">
.mine-view {
  width: 100%;
  background: white;
  padding: 48px 40px 219px 40px;
  min-height: 610px;
  .title-view {
    font-weight: 600;
    font-size: 20px;
    color: #2c1101;
  }
  .box-view {
    height: 226px;
    margin-top: 20px;
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid #e8ded6;
    padding: 22px;
    .tabBar-head {
      font-weight: 600;
      font-size: 26px;
      color: #ff442f;
    }
    .head-text {
      font-weight: 400;
      font-size: 12px;
      color: #69442e;
    }
    .box-button {
      margin-top: 20px;
      display: flex;
      .button-item {
        @extend .row;
        width: 101px;
        height: 36px;
        border-radius: 4px;
        border: 1px solid #ff2615;
        padding: 8px 12px;
        .button-image {
          width: 16px;
          height: 16px;
        }
        .but-text {
          font-weight: 400;
          font-size: 14px;
          color: #ff2615;
          margin-left: 2px;
        }
      }
      .button-item + .button-item {
        margin-left: 10px;
      }
    }
    .box-bottom {
      width: 100%;
      @extend .row-start;
      flex-wrap: wrap;
      margin-top: 33px;

      .cell-item {
        // width: calc(100% / 3);
        .label-text {
          font-weight: 400;
          font-size: 12px;
          color: #69442e;
          @extend .row-start;
          .button-view {
            margin-left: 7px;
            @extend .row;
            font-weight: 400;
            font-size: 12px;
            color: #ff2615;

            .el-icon-arrow-right {
              margin-left: 7px;
              margin-top: 1px;
            }
          }
        }

        .desc-text {
          font-weight: 600;
          font-size: 22px;
          color: #2c1101;
        }
      }
      .cell-item + .cell-item {
        margin-left: 104px;
      }
    }
  }
  .box-income {
    padding: 15px 22px;
    .income-title {
      font-family: PingFangSC, PingFang SC;
      font-weight: 600;
      font-size: 18px;
      color: #2c1101;
      line-height: 25px;
      text-align: left;
      font-style: normal;
      padding: 15px 0;
    }
    .income-detail {
      display: flex;
      justify-content: space-between;
      padding: 15px 0;
      border-top: 1px solid #f7e8e4;
      align-items: center;
      line-height: 22px;
      .income-detail-left {
        font-family: PingFangSC, PingFang SC;
        font-weight: 600;
        font-size: 16px;
        color: #2c1101;
        line-height: 22px;
        text-align: left;
        font-style: normal;
        .income-detail-time {
          color: #b8aca3;
          font-size: 14px;
          font-weight: 400;
        }
      }
      .income-detail-right {
        font-family: PingFangSC, PingFang SC;
        font-weight: 400;
        font-size: 16px;
        color: #ff2615;
        line-height: 22px;
        text-align: center;
        font-style: normal;
      }
    }
  }
}
</style>